<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>产品管理--产品列表</title>
		<link href="css/common.css" rel="stylesheet" type="text/css" />
		<link href="css/normolize.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<!--[if IE 9]> <link href="css/ieHack9.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if IE 8]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /><link href="css/ieHack8.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if lte IE 7]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<style>

		</style>
	</head>

	<body>
		<script src="js/tpl/header.js" type="text/javascript" charset="utf-8"></script>
		<div class="page-wrapper productlist minwidth border" id="page-wrapper">
			<div class="line"></div>
			<script src="js/tpl/menu.js" type="text/javascript" charset="utf-8"></script><div class="vertival-line"></div>
			<div class="page-content">
				<div class="tablist">
					<ul>
						<li class="tabItem active"><a href="productManage.html#productManage">产品列表</a></li>
						<li class="tabItem"><a href="productCategory.html#productManage">产品分类</a> </li>
					</ul>
				</div>

				<div class="page-container">
					<div class="page-form">
						<div>
							<span class="btn disabled fl"><i class="icon icon_group "></i>批量删除</span>
							<span class="btn blue addPro  fr" ><i class="icon icon_add blue"></i> 添加产品</span>
						</div>
						<div class="clearfix"></div>

						<div class="form">
							<form class="inline-form">
								<div>
									<label>产品名称：</label>
									<input type="text" placeholder="请输入产品名称" style="width: 129px;" />
								</div>

								<div>
									<label>产品类型：</label>
									<div class="overlay">
										<!--这个是用来存放选中的select的值的-->
										<input type="hidden" value="" class="form-select-value" />
										<div class="dropdown">
											<button class="dropdown-toggle form-dropdown" type="button">
				                                <span class="value">全部类型</span>
				                                <span class="caret"></span>
				                            </button>
											<ul class="none">
												<li data-value='001'>1</li>
												<li data-value='002'>2</li>
												<li data-value='003'>3</li>
												
											</ul>
										</div>
									</div>
								</div>

								<div>
									<label>创建时间：</label>
									<input type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'%y-%M-%d %H:%m:%s'})" />--<input type="text" class="Wdate" onfocus="WdatePicker()" />
								</div>

								<input type="button" value="搜索" class="search-input-button" />
								<span class="search-span-button colorblue">重置</span>
							</form>
						</div>
					</div>
					<div class="table">
						<div class="tablelist">
						<table>
							<thead>
								<tr>
									<th class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkAll" />
											<label for="checkAll" class="input-label"></label>
										</div>
										全选
									</th>
									<th>产品名称</th>
									<th>产品类型</th>
									<th>创建时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody id="itemContainer">
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_1" />
											<label for="checkbox_1" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<!--<p class="colorblue">产品编号：20160112110836644</p>-->
											<p class=" pro_name">山西汾酒</p>
											<!--<p class="tabletop">产品产地：山西太原</p>-->
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='5'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='5'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='5'>添加计划单</span></div>
										</div>

									</td>
								</tr>

								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox checked_checkbox inline-block">
											<input type="checkbox" checked="checked" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_2" />
											<label for="checkbox_2" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='4'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='4'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='4'>添加计划单</span></div>
										</div>

									</td>
								</tr>

								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_3" />
											<label for="checkbox_3" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='3'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='3'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='3'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_4" />
											<label for="checkbox_4" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='2'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='2'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='2'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_5" />
											<label for="checkbox_5" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='1'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='1'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='1'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_5" />
											<label for="checkbox_5" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='1'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='1'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='1'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_5" />
											<label for="checkbox_5" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='1'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='1'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='1'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								<tr>
									<td class="colspan" style="width:130px;">
										<div class="checkbox inline-block">
											<input type="checkbox" value="" class="label-input" id="checkbox_5" />
											<label for="checkbox_5" class="input-label"></label>
										</div>
										<img src="images/product/product.png" class="product" />
									</td>
									<td>
										<div class="inline-block vertical-middle text-left">
											<p class=" pro_name">山西汾酒</p>
										</div>
									</td>
									<td><p>浓香型白酒</p></td>
									<td><p>2016-01-12 11:08:37</p></td>
									<td>
										<div class="text-left inline-block">
											<div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id='1'>编辑</span></div>
											<div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id='1'>删除</span></div>
											<div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id='1'>添加计划单</span></div>
										</div>

									</td>
								</tr>
								
							</tbody>
						</table>
					</div>

						<div class="pagelist fr">
							<div class=" pagedesc fl">当前<span class="currentPage"></span>/<span class="totalpage"></span>，每页<span class="perpage"></span>条，共<span class="totalnumber"></span>条</div>
							<div class="pagination inline-block fl"></div>
							<div class="inline-block fl">
								到第<input type="text" value="" class="gotopage" />页 <input type="button" value="跳转" class="search-input-button border-radius bgblue gotopage_button"></span>
							</div>

						</div>

					</div>

				</div>

			</div>
		</div>

		<div class="footer">
			<div class="footercontainer">
				<ul>
					<li>
						<a href="#">关于我们</a>
					</li>
					<li>
						<a href="#">服务与支持</a>
					</li>
					<li>
						<a href="#">常见问题</a>
					</li>
					<li>
						<a href="#">人才招聘</a>
					</li>
					<li>
						<a href="#">加盟合作</a>
					</li>
				</ul>

				<div style="margin-top:13px;">版权所有@ 2015 - 2016 深圳在乎传媒科技有限公司 粤ICP备15107022-1号</div>
			</div>

		</div>

		<!--这里是删除产品的弹框（无法删除）-->

	</body>

	<script src="js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/jPages.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/js.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/pageFun.js" type="text/javascript" charset="utf-8"></script>

	<script src="js/wdatePicker/WdatePicker.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layFun.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/scroll/jquery.slimscroll.min.js" type="text/javascript" charset="utf-8"></script>
	

	<script>
	
	//删除产品的方法
	function deletePro(id){
		//这里做异步删除的处理
			$.ajax({
				type: 'POST',
				url: '',
				data: '',
				success:function(data){
					data=[{
						'id':1,
						'name':'aa',
						'src':'images/product/product2.png',
						'time':'2015-06-50',
						'type':'fenjid',
						
					},{
						'id':2,
						'name':'bb',
						'src':'images/product/product2.png',
						'time':'2015-06-50',
						'type':'fenjid',
						
					},{
						'id':3,
						'name':'cc',
						'src':'images/product/product2.png',
						'time':'2015-06-50',
						'type':'fenjid',
						
					}]
					//返回新的数组
					var html='<table> <thead> <tr> <th class="colspan" style="width:130px;"> <div class="checkbox inline-block"> <input type="checkbox" value="" class="label-input" id="checkAll" /> <label for="checkAll" class="input-label"></label> </div> 全选 </th> <th>产品信息</th> <th>产地类型</th> <th>创建时间</th> <th>操作</th> </tr> </thead> <tbody id="itemContainer">';
					for(var i=0;i<data.length;i++){
						html+='<tr><td class="colspan" style="width:130px;"> <div class="checkbox inline-block"> <input type="checkbox" value="" class="label-input" id="checkbox_'+data[i]['id']+'" /> <label for="checkbox_'+ data[i]['id'] +'"  class="input-label"></label> </div> <img src="'+data[i]['src']+'" class="product" /> </td> <td> <div class="inline-block vertical-middle text-left"> <p class="tabletop pro_name">'+data[i]['name']+'</p> </div> </td> <td>'+data[i]['type']+'</td> <td>'+data[i]['time']+'</td> <td> <div class="text-left inline-block"> <div class="colorblue"><i class="icon icon_edit"></i> <span class="editPro" data-id="'+data[i]['id']+'">编辑</span></div> <div class="tabletop colorblue"><i class="icon icon_delete"></i> <span class="deletePro" data-id="'+data[i]['id']+'">删除</span></div> <div class="tabletop colorblue"><i class="icon icon_addPlan"></i> <span class="addPlanOrder" data-id="'+data[i]['id']+'">添加计划单</span></div> </div>  </td></tr>'
					}
					html+='</tbody></table>';
					
					$('.tablelist').html(html);
					var pageObj = new pageFun();
			        //参数每页多少个,当前页,总个数,容器的ID
					pageObj.init(5, 2, 5, 'itemContainer');
				},
				dataType:"json"
			});
	}
		
		 
		$(function() {
			commonObj.init();

			//这个是产品详情
			$('.pro_name').click(function() {
					layer.open({
						type: 2,
						title: '产品信息',
						shadeClose: true,
						shade: 0.8,
						area: ['380px', '380px'],
						content: 'proinfo.html',
						success: function(layero, index) {

						}
					});
				})
				//这个是编辑产品
			$('.editPro').click(function() {
					layer.open({
						type: 2,
						title: '添加产品',
						shadeClose: true,
						shade: 0.8,
						fix: false,
						area: ['800px', '740px'],
						offset: '100px',
						content: 'editProduct.html',
						success: function(layero, index) {
							
						}
					});
				})
				//这个是添加产品
			$('.addPro').click(function() {
					layer.open({
						type: 2,
						title: '添加产品',
						shadeClose: true,
						shade: 0.8,
						fix: false,
						area: ['800px', '740px'],
						offset: '100px',
						content: 'addProduct.html',
						success: function(layero, index) {
							
						}
					});
				})
				//这个是删除产品（还没有添加计划单）
			$('.deletePro').click(function() {
				var _obj = this;
				var id = $(this).attr('data-id');
				layer.open({
					type: 2,
					title: '删除',
					shadeClose: true,
					shade: 0.8,
					area: ['400px', '180px'],
					content: 'confirmDelete.html',
					success: function(layero, index) {
					 
					    var body = layer.getChildFrame('body', index);
					    var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象，执行iframe页的方法：iframeWin.method();
					    body.find('.title').html('是否删除计划单?');
						body.find('.deleteId').val(id);
					
		//给父页面传值
		body.find('#subButton').on('click', function() {
            deletePro(id);
            layer.close(index);
		});
		
		body.find("#cancelButton").on('click', function() {
            
            layer.close(index);
		});
		
					}
				});
			});
			//这个是删除产品（已经添加计划单）
			/*$('.deletePro').click(function() {
				layer.open({
					type: 1,
					title: false,
					closeBtn: 0,
					shadeClose: true,
					area: ['339px', '158px'],
					skin: '',
					content: '<div class="noDelete" style="background:#fff;"> <div class="line"> <div class="prevline"></div> </div> <div class="text-center" style="line-height: 150px;"><i class="icon" style="width:21px;background-position: -179px  -180px;"></i> <span style="font-size:16px;">该产品已添加计划单，无法删除！</span></div> </div>'
				});
			})*/
		});
	</script>

</html>